package com.etc.my.service;

import com.etc.my.dto.CarFavoriteDto;
import com.etc.my.entity.User;

import java.util.List;

public interface UserService {


    List<User> getAllUser();

    boolean userRegister(User user);

    User userLogin(String user_phone,String user_pwd);

    boolean updateUser(User user);

    User queryUserById(Integer user_id);


    List<CarFavoriteDto> getFavoriteCar(Integer user_id,Integer page,Integer size);
    Long getFavoriteCount(Integer user_id);

    /**
     * 根据电话判断用户是否存在
     * @return
     */
    boolean queryUserByPhone(String user_phone);
}
